Skip to main content

TTN

TTN (The Things Network) is a LoRaWAN network server used to route device events.

img

We use a standard output transformation processor that transforms output messages from Actility format to TTN format.

All examples below show the Actility message and the transformed TTN message directly.

Input (Actility format)

{
"DevEUI_uplink": {
"Time": "2024-05-16T14:53:50.140859567Z",
"DevEUI": "20635F01F0019988",
"FPort": 2,
"FCntUp": 53,
"ADRbit": 1,
"MType": 4,
"FCntDn": 54,
"payload_hex": "02300040a0",
"payload": {
"co2": 768,
"humidity": 41,
"light": 39,
"motion": 6,
"temperature": 22.6
},
"LrrRSSI": -67,
"LrrSNR": 12.75,
"SpFact": 12,
"Channel": "LC1",
"Lrrid": "10001A11",
"LrrLAT": 48.933865,
"LrrLON": 1.195898,
"Lrrs": {
"Lrr": [
{
"Lrrid": "10001A11",
"Chain": 0,
"LrrRSSI": -67,
"LrrSNR": 12.75
},
{
"Lrrid": "10001D1D",
"Chain": 0,
"LrrRSSI": -48,
"LrrSNR": 12.75
},
{
"Lrrid": "100009A9",
"Chain": 0,
"LrrRSSI": -89,
"LrrSNR": 12.5
}
]
},
"CustomerData": {
"name": "eui-20635f01f0019988"
},
"DriverCfg": {
"mod": {
"pId": "modBaumer",
"mId": "wep5",
"ver": "1"
},
"app": {
"pId": "appBaumer",
"mId": "wep5",
"ver": "1"
}
},
"DevAddr": "260BA1B8",
"Frequency": 868.1
}
}

Output (TTN format)

{
"end_device_ids": {
"dev_eui": "20635F01F0019988",
"dev_addr": "260BA1B8",
"device_id": "eui-20635f01f0019988",
"application_ids": {
"application_id": "appBaumer:wep5:1"
}
},
"received_at": "2024-05-16T14:53:50.140859567Z",
"uplink_message": {
"f_port": 2,
"f_cnt": 53,
"received_at": "2024-05-16T14:53:50.140859567Z",
"frm_payload": "MDIzMDAwNDBhMA==",
"decoded_payload": {
"co2": 768,
"humidity": 41,
"light": 39,
"motion": 6,
"temperature": 22.6
},
"rx_metadata": [
{
"gateway_ids": {
"eui": "10001A11"
},
"location": {
"latitude": 48.933865,
"longitude": 1.195898
},
"channel_index": 1,
"time": "2024-05-16T14:53:50.140859567Z",
"timestamp": 1715871230,
"rssi": -67,
"channel_rssi": -67,
"snr": 12.75
},
{
"gateway_ids": {
"eui": "10001D1D"
},
"time": "2024-05-16T14:53:50.140859567Z",
"timestamp": 1715871230,
"rssi": -48,
"channel_rssi": -48,
"snr": 12.75
},
{
"gateway_ids": {
"eui": "100009A9"
},
"time": "2024-05-16T14:53:50.140859567Z",
"timestamp": 1715871230,
"rssi": -89,
"channel_rssi": -89,
"snr": 12.5
}
],
"settings": {
"data_rate": {
"lora": {
"spreading_factor": 12
}
},
"frequency": "868100000",
"time": "2024-05-16T14:53:50.140859567Z",
"timestamp": 1715871230
},
"version_ids": {
"brand_id": "modBaumer",
"model_id": "wep5",
"hardware_version": "1"
}
}
}